import 'package:casdon/modules/recipe/data/api/cook_model_api.dart';
import 'package:casdon/modules/recipe/domain/usecase/cook_model_list_usecase.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

final courseTagsProvider = FutureProvider<List<ResponseCookModelApi>>((
  ref,
) async {
  final list = await ref.read(cookModelListUsecaseProvider).execute();
  ResponseCookModelApi api = ResponseCookModelApi(
    id: null,
    name: "全部",
    ossUrls: null,
    sort: 0,
    pubStatus: 1,
  );
  list.insert(0, api);
  return list;
});
